package com.hhit.collaborative_learning.learning;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.hhit.collaborative_learning.dao.impl.PublicDaoImplMySql;

public class SubmitExamineServlet extends HttpServlet {
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		String con1=request.getParameter("con1");
		String con2=request.getParameter("con2");
		String con3=request.getParameter("con3");
		String userId=request.getParameter("userId");
		String applyState=request.getParameter("state");
		PublicDaoImplMySql dao=new PublicDaoImplMySql();
		response.getWriter().print(dao.submitExamine(Integer.parseInt(con1), Integer.parseInt(con2), Integer.parseInt(con3), Integer.parseInt(userId), Integer.parseInt(applyState)));
	}

}
